@echo off

set TITLE=Tomcat - Cottage

title %TITLE%

set PRPC_DEV=%CD%

set JAVA_HOME=C:\pega\apps\java\jdk1.6
set CATALINA_HOME=C:\pega\tools\apache-tomcat-6.0.28
set CATALINA_BASE=%PRPC_DEV%\workspace\Servers\Tomcat60_Default-config
set JAVA_ENDORSED_DIRS=C:\pega\tools\apache-tomcat-6.0.28\endorsed
set JAVA_OPTS=-Xms768m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m -Djava.awt.headless=true -Djava.io.tmpdir="%PRPC_DEV%/workspace/servers/tomcat60_default-config/java_io_tmpdir" -Dwtp.deploy="%PRPC_DEV%/workspace/servers/tomcat60_default-config/wtpwebapps" -Dcatalina.base=%CATALINA_BASE% -Dcom.pega.sma.tmpdir=%PRPC_DEV%/workspace/Servers/Tomcat60_Default-config/prpc

if exist %CATALINA_BASE%\conf\catalina.policy goto startTomcat
echo Could not find Tomcat in %CATALINA_BASE%

goto end

:startTomcat

%CATALINA_HOME%\bin\startup.bat 

:end
